<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>特价商品</title>
<script type="text/javascript" src="${ctx}/script/common/jquery.js"></script> 
<script type="text/javascript" src="${ctx}/script/common/common.js"></script>
<script type="text/javascript" src="${ctx}/script/product/special.js"></script>
<script type="text/javascript" src="${ctx}/script/common/checkbox.js"></script>
<script type="text/javascript" src="${ctx}/dwr/interface/productService.js"></script>
<script type="text/javascript" src="${ctx}/dwr/engine.js"></script>
<script language="javascript" src="${ctx}/script/shop/productnotify.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function(){
		jQuery(":text").change(updateSequence);
	});
</script>
<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
</head>
<body>
<form action="${ctx}/product/productMessage.do" method="post">
<table width="100%" align="center"  id="List">
	<input type="hidden" name="method" value="special" />
	<input type="hidden" name="product.specialType"
		value="${History.specialType}" />
	<tr>
		<th class="td_01" width="25px" height="25px">
			<input type="checkbox" name="chkSelectAll" onclick="javascript:checkedAll(this);" />
		</th>
		<th class="td_01">名称</th>
		<th class="td_01" >类别</th>
		<th class="td_01" nowrap>品牌</th>
		<th class="td_01" nowrap>状态</th>
		<th class="td_01" nowrap>顺序</th>
		<th class="td_01" nowrap>价格</th>
		<logic:equal name="History" property="specialType" value="2">
			<th class="td_01" nowrap>特惠价格</th>
			<th class="td_01" nowrap>特惠开票价格</th>
		</logic:equal>
		<th class="td_01" nowrap>操作</th>
	</tr>
	<logic:present name="productList">
		<logic:iterate id="product" name="productList">
			<tr>
				<td class="td_03" width="25px" nowrap><input type="checkbox"
					id="chkSel" name="chkSel" value="${product.id}" /></td>
				<td class="td_03" ><a href="${ctx}/product/productMessage.do?method=shopDeatails&id=${product.id}" target="_blank">${product.name}</a></td>
				<td class="td_03" nowrap>${product.catalogName}</td>
				<td class="td_03" nowrap>${product.brandName}</td>
				<td class="td_03" nowrap><bean:message key="status.${product.status}"/></td>
				<td class="td_03" nowrap><input value="${product.specialSequence}" size="3" maxlength="3"></td>
				<td class="td_03" nowrap>${product.price}</td>
				<logic:equal name="History" property="specialType" value="2">
					<td class="td_03" nowrap>${product.specialPrice}</td>
					<td class="td_03">${product.specialTaxprice}</td>
				</logic:equal>
				<td class="td_03" nowrap width="20%"><a href="${ctx}/product/productMessage.do?method=ToUpdateProduct&id=${product.id}&forward=ToSpecialType">编辑资料 </a>
				<logic:equal name="History" property="specialType" value="2">
					<a href="javascript:updateSpecialPrice('${product.id}');">修改特惠价格 </a>
				</logic:equal> <a href="javaScript:void(0);" onClick="toShowProductnotify('${product.id}','${product.name}')">到货通知名单</a></td>
			</tr>
		</logic:iterate>
	</logic:present>
	<tr id="operator">
		<td colspan="10" align="center">
		<input type="button" class="btn" onclick="javascript:openSpecialSelector('List',${History.specialType});" name="apply" value="选择商品">
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
		<input type="button" class="btn" onclick="javascript:deletes();" name="apply" value="删除">
		</td>
	</tr>
</table>
</form>
</body>
</html>